﻿using System;

namespace ExpressesClass.DepponApi.Util
{
    public class ConfigUrl
    {
        public static String GetUrl(String appName)
        {
            switch (appName)
            {
                case "CREATE":
                    return "http://gwapi.deppon.com/dop-interface-async/standard-order/createOrderNotify.action";
                case "CANCEL":
                    return "http://gwapi.deppon.com/dop-interface-async/standard-order/cancelOrder.action";
                case "QUERY":
                    return "http://dpapi.deppon.com/dop-interface-sync/standard-query/queryOrder.action";
                case "TRACE":
                    return "http://dpapi.deppon.com/dop-interface-sync/standard-query/newTraceQuery.action";
                default:
                    return "";
            }
        }

        //测试
        //public static String GetUrl(String appName)
        //{
        //    switch (appName)
        //    {
        //        case "CREATE":
        //            return "http://dpsanbox.deppon.com/sandbox-web/dop-standard-ewborder/createOrderNotify.action";
        //        case "CANCEL":
        //            return "http://dpsanbox.deppon.com/sandbox-web/standard-order/cancelOrder.action";
        //        case "QUERY":
        //            return "http://dpsanbox.deppon.com/sandbox-web/standard-order/queryOrder.action";
        //        case "TRACE":
        //            return "http://dpsanbox.deppon.com/sandbox-web/standard-order/newTraceQuery.action";
        //        default:
        //            return "";
        //    }
        //}
    }
}
